package com.xbj.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.xbj.dao.NewsDao;
import com.xbj.model.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by JzzZ
 * Date: 2018\7\9 0009
 * Time: 15:01
 * Project: News2.0
 * File description:
 */
@Service
public class NewsService {
    @Autowired
    NewsDao newsDao;

    public List<News> newsList() {
        return this.newsDao.selectNews();
    }
}
